package com.hbnu.zb;

import java.util.Scanner;

public class NumberEncryption {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入一个六位数");
        int num = sc.nextInt();
        int temp = num;
        int sum = 0;
        while (temp > 0) {
            int n = temp % 10;
            n = (n + 5) % 10;
            sum = sum * 10 + n;
            temp = temp / 10;
        }
        System.out.println("加密后的数字为：" + sum);
    }
}
